﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001DD RID: 477
	public class TDb2IterateStmt : TCustomDb2Stmt
	{
		// Token: 0x06001016 RID: 4118 RVA: 0x0030C95B File Offset: 0x0030AB5B
		public TDb2IterateStmt(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2iteratestmt;
		}

		// Token: 0x06001017 RID: 4119 RVA: 0x0030C96F File Offset: 0x0030AB6F
		internal override void buildsql()
		{
		}

		// Token: 0x06001018 RID: 4120 RVA: 0x0030C971 File Offset: 0x0030AB71
		internal override void clear()
		{
		}

		// Token: 0x06001019 RID: 4121 RVA: 0x0030C973 File Offset: 0x0030AB73
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x0600101A RID: 4122 RVA: 0x0030C97A File Offset: 0x0030AB7A
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x170002FF RID: 767
		// (get) Token: 0x0600101B RID: 4123 RVA: 0x0030C97C File Offset: 0x0030AB7C
		public override TObjectName LabelName
		{
			get
			{
				return this.labelName;
			}
		}

		// Token: 0x0600101C RID: 4124 RVA: 0x0030C984 File Offset: 0x0030AB84
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			base.doParseStatement(psql);
			TStubStmtSqlNode tstubStmtSqlNode = (TStubStmtSqlNode)this.rootNode;
			this.labelName = tstubStmtSqlNode.ObjectName;
			return 0;
		}

		// Token: 0x0600101D RID: 4125 RVA: 0x0030C9BC File Offset: 0x0030ABBC
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0600101E RID: 4126 RVA: 0x0030C9CC File Offset: 0x0030ABCC
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x0400138E RID: 5006
		private TObjectName labelName;
	}
}
